package com.gen.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzx.dao.IKindsDao;
import com.zzx.entity.Kinds;

@Service
public class KindsServiceImpl implements IKindsService{
	@Autowired
	private IKindsDao kindsDao;
	
	public IKindsDao getKindsDao() {
		return kindsDao;
	}

	public void setKindsDao(IKindsDao kindsDao) {
		this.kindsDao = kindsDao;
	}

	@Override
	public int insertKind(Kinds kinds) {
		return kindsDao.insertKind(kinds);
	}

	@Override
	public int deleteKindsByKid(Integer kid) {
		return kindsDao.deleteKindsByKid(kid);
	}

	@Override
	public int updateKinds(Kinds kinds) {
		return kindsDao.updateKinds(kinds);
	}

}
